using System.IO;
using RoboContainer.Infection;
using JetBrains.Annotations;

namespace TimeMachine.Engine.Agents
{
	public class ProjectSettings : IProjectSettings
	{
		[NotNull]
		[ProvidePart(UseOnlyThis = true)]
		public IVcsRepo VcsRepo { get; set; }

		[NotNull]
		[ProvidePart(UseOnlyThis = true)]
		public ISourcesSettings SourcesSettings { get; set; }

		[NotNull]
		public string StoragePath { get; set; }

		public string GetDataDirPath()
		{
			return StoragePath + Path.DirectorySeparatorChar + Name;
		}

		[NotNull]
		public string Name { get; set; }
	}
}